#
# Component Makefile
#
# This Makefile should, at the very least, just include $(SDK_PATH)/make/component.mk. By default, 
# this will take the sources in this directory, compile them and link them into 
# lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
# please read the SDK documents if you need to do this.
#

COMPONENT_ADD_INCLUDEDIRS := .

COMPONENTS_EXTRA_CLEAN := graphics.inc graphics.rgba
powerbtn_menu.o: graphics.inc

graphics.inc: $(COMPONENT_PATH)/graphics.xcf
	convert $^ -background none -layers flatten -crop 80x142+0+0 graphics.rgba
	cat graphics.rgba | xxd -i > graphics.inc
